package com.zy.edu.service;

import com.zy.edu.bean.Course;
import com.zy.edu.bean.Course;
import com.baomidou.mybatisplus.service.IService;
import com.zy.edu.bean.InputParam;
import com.zy.edu.bean.StatsInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-17
 */
public interface CourseService extends IService<Course> {
    public Map saveOrUpdate(Course course,InputParam inputParam);
    public Map list(Course course, InputParam inputParam);
    public Map dele( Course course);

    Map getById(Course course, InputParam inputParam);


    Map findAllByStuId(InputParam inputParam);
//
//    Map findAllByClsId(InputParam inputParam);

    //根据班级的id以及课程id，获取这个班级的所有课时数据
    //根据学生的id以及课程id，获取这个学生的所有课时数据
    Map getAllAndRecord(InputParam inputParam);

    Map photo(MultipartFile file, InputParam inputParam) throws IOException;

    //根据课程id 统计相关数据：课时总数，课件总数，视频总数
    StatsInfo computeById(String id);
    //根据班级id 查询改班级下的所有课程
    List<Course> getByClsId(String clsId);
}
